import request from '@/utils/request';

// 查询公告列表
export function listPlatform(query) {
    return request({
        url: '/system/platform/list',
        method: 'get',
        params: query
    })
}

// 查询菜单列表
export function selectPlatformListByUser() {
    return request({
        url: '/system/platform/selectPlatformListByUser',
        method: 'get'
    })
}

// 切换系统平台
export function switchPlatform(data) {
    return request({
        url: '/system/platform/switchPlatform',
        method: 'post',
        params: data
    })
}

// 新增系统平台
export function add(data) {
    return request({
        url: '/system/platform',
        method: 'post',
        data: data
    })
}